import superagent from 'superagent';

class Crowller{
  private secret = 'secretKey';
  private url = `http://www.baidu.com`;
  private rawHtml = '';
  async getRawHtml() {
    const result = await superagent.get(this.url);
    this.rawHtml = result.text;
  }
  constructor() {
    this.getRawHtml();
    console.log('1')
  }
}

const crowller = new Crowller();